<template>
  <Headercomponents title="测试">
    <i>图标</i>
  </Headercomponents>
  <van-button type="primary" @click="getNotice">主要按钮</van-button>
  <div class="home">首页</div>
</template>

<script setup lang="ts">
import { index } from "@/serve/_";
import { NoticeType } from "@/types/response/home";
import { onMounted, reactive, toRefs } from "vue";
import { md5 } from "@/utils/md5";
import Headercomponents from "@/components/header.vue";

const state: {
  list: any[]
} = reactive({
  list: []
})

// let { noticeArr } = toRefs(state)

onMounted(() => {
  // getNotice()
  md5()
})

let getNotice = async () => {
  state.list = await index();
  console.log(state.list);
} 
</script>

<style lang="less" scoped>
@import "@page/Home.less";
</style>